Abstract and reuse reactive logic across files and components with Svelte runes. 🔴 Patreon: https://www.patreon.com/joyofcode 𝕏 Twitter: https://twitter.com/joyofcodedev 💬 Discord: https://discord.com/invite/k6ZpwAKwwZ 🔥 Uses: https://www.joyofcode.xyz/uses 🔖 Timestamps 0:00 Intro 0:35 Persisting State Using Local Storage 3:06 Creating A Reusable Local Storage Function 4:35 Moving The Code Outside The Component 5:27 Improving The User Experience With Types 6:34 Creating A Reusable Local Storage Class 9:35 Adding Types To The Local Storage Class 10:23 Using A Factory Function 10:54 Using Get And Set Methods 13:41 Outro #joyofcode #sveltekit #svelte